﻿
using BCCommon;
using BCCommon.Enums;
using BCData.Common.Business.WebsiteBusinessCategory;
using BCDto.Common.Business.WebsiteBusinessCategory;
using BCDto.Sim.Admin.Admin;
using BCEntity.Common.Business.WebsiteBusinessCategory;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.Common.Business.WebsiteBusinessCategory
{
    /// <summary>
    /// 官网业务分类
    /// </summary>
    public interface IWebsiteBusinessCategoryService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="websiteBusinessCategoryId">官网业务分类Id</param>
        bool Exists(int websiteBusinessCategoryId);
        /// <summary>
        /// 添加官网业务分类
        /// </summary>
        /// <param name="requestDto">官网业务分类信息</param>
        /// <param name="adminDto"></param>
        WebsiteBusinessCategoryDto Add(WebsiteBusinessCategoryRequestDto requestDto, AdminDto adminDto);
        /// <summary>
        /// 更新官网业务分类
        /// </summary>
        /// <param name="adminDto"></param>
        /// <param name="putDto">官网业务分类信息</param>
        WebsiteBusinessCategoryDto Update(WebsiteBusinessCategoryPutDto putDto, AdminDto adminDto);
        /// <summary>
        /// 删除官网业务分类
        /// </summary>
        /// <param name="websiteBusinessCategoryId">官网业务分类Id</param>
        bool Delete(int websiteBusinessCategoryId);
        /// <summary>
        /// 获取官网业务分类
        /// </summary>
        /// <param name="websiteBusinessCategoryId">官网业务分类Id</param>
        WebsiteBusinessCategoryDto Get(int websiteBusinessCategoryId);
        /// <summary>
        /// 获取官网业务分类列表
        /// </summary>
        /// <param name="tagcode">标记</param>
        IEnumerable<WebsiteBusinessCategoryDto> GetList(string tagcode);
        /// <summary>
        /// 获取官网业务分类分页列表
        /// </summary>
        /// <param name="tagcode">标记</param>
        /// <param name="title">分类标题</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">官网业务分类每页数据条数</param>
        PageableList<WebsiteBusinessCategoryDto> Query(string tagcode, string title, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        /// <summary>
		/// 启用官网业务分类
		/// </summary>
		/// <param name="websiteBusinessCategoryId">官网业务分类Id</param>
		bool Enabled(int websiteBusinessCategoryId);
        /// <summary>
        /// 禁用官网业务分类
        /// </summary>
        /// <param name="websiteBusinessCategoryId">官网业务分类Id</param>
        bool Disabled(int websiteBusinessCategoryId);
        #endregion  成员方法
    }
}